home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir24 / paket61.zip / SCRIPTS@.EXE / GETMAIL.SCP < prev    next >
Text File  |  1994-08-15  |  2KB  |  61 lines

  1. E
  2. E  *************************************************************************
  3. E  *                       This is the GETMAIL Script                      *
  4. E  *    This Script contacts the BBS, then issues a LR (List) command.     *
  5. E  *                                                                       *
  6. E  *    When it has issued the LR command, the Script returns to paKet.    *
  7. E  *************************************************************************
  8. E
  9. *------------------------------------------------------------------------
  10. *  This Script is a slight variation on the BBSCONN Script.
  11. *
  12. *  Note I have used only ONE variable here - seems to work just as well.
  13. *
  14. *  The main difference is, this one issues a LR command to list the BBS
  15. *  Messages for me after the connection is established.  It is hardly
  16. *  worth a Script just to do that, but I included this so you can easily
  17. *  add any additional commands you might like.
  18. *
  19. *  For example you might like to set up this Script to include a Delay
  20. *  (Eg: D 02:00 to wait until 2am), then connect to the BBS and download a
  21. *  Binary File.
  22. *---------------------------------------------------------------------------
  23.  
  24. * In the following M command, the BBS callsign is Moved into the %A variable
  25. * Change that line (after the comma) to include the BBS of YOUR CHOICE.
  26. M %A,VK2ATM-1
  27.  
  28. * Send a BREAK to the TNC to get into Command Mode
  29. B
  30.  
  31. * Then wait for the "cmd:" prompt.  Quit if not received within 5 seconds.
  32. w 5,cmd:
  33. q
  34.  
  35. * Now, SEND a CONNECT command using the BBS callsign we have in the %A variable
  36. S C %A
  37.  
  38. * ... and wait up to 30 seconds for the TNC's CONNECTED message
  39. w 30,CONNECTED to %A
  40. g noanswer
  41.  
  42. * We are CONNECTED, but wait for the BBS Prompt (just the last char will do)
  43. w 30,>
  44. g noanswer
  45.  
  46.  
  47. * Right!   Now we are connected and the BBS is waiting for a command.
  48. * In this example I will simply send the LR command.  You might like to do
  49. * something a little more sophisticated, including waiting for the command
  50. * to be performed before you issue a Disconnect (or send a Bye) command!
  51.  
  52. s lr
  53.  
  54. * That's all Folks
  55. r
  56.  
  57. :noanswer
  58. E *** The BBS did not respond within 30 seconds ***
  59. r -1
  60.  
  61.